package com.smedi.ismedi.constructionproject.core.infrastructure.enumerate;

/**
 * @Author: xulinjun
 * @Date: 2021-6-28 19:12
 */
public enum ProjectCategoryEnum {
    ROAD_BRIDGE_LANDSCAPE("ROAD_BRIDGE_LANDSCAPE", "道路、桥梁、景观"),

    UNDERGROUND_SPACE("UNDERGROUND_SPACE", "地下空间"),

    WATER_ENVIRONMENT("WATER_ENVIRONMENT", "水务、环境"),

    WATER_CONSERVANCY("WATER_CONSERVANCY", "水利"),

    HOUSING_CONSTRUCTION("HOUSING_CONSTRUCTION", "房建");

    private String name;

    private String value;

    ProjectCategoryEnum(String value, String name) {
        this.name = name;
        this.value = value;
    }

    public static String getName(String value) {
        for (ProjectCategoryEnum c : ProjectCategoryEnum.values()) {
            if (c.getValue().equals(value)) {
                return c.name;
            }
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
